import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/purchase-receipt/list',
    method: 'GET',
    params
  })
}

// 采购入库新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/purchase-receipt/add',
    method: 'POST',
    data
  })
}

// 入库/送检
export function WarehousInspectionAPI(data) {
  return request({
    url: '/storage/purchase-receipt/warehousInspection',
    method: 'POST',
    data
  })
}

// 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/purchase-receipt/close',
    method: 'POST',
    data
  })
}

// 采购入库修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/purchase-receipt/update',
    method: 'POST',
    data
  })
}

// 采购入库删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/purchase-receipt/delete/' + data,
    method: 'DELETE'
  })
}

// 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/purchase-receipt/view/' + data,
    method: 'GET'
  })
}

// 关结
export function WarehousingPDAAPI(data) {
  return request({
    url: '/storage/purchase-receipt/warehousingPDA',
    method: 'POST',
    data
  })
}

// 采购入库明细列表
export function GetDetailAPI(params) {
  return request({
    url: '/storage/purchase-receipt-detail/list',
    method: 'GET',
    params
  })
}

// 采购订单列表
export function GetOrderAPI(params) {
  return request({
    url: '/order/purchase-order/list',
    method: 'GET',
    params
  })
}

//查询入库送检弹窗列表
export function getReceiptCheckViewAPI(params) {
  return request({
    url: '/storage/purchase-receipt/getReceiptCheckView',
    method: 'GET',
    params
  })
}

// 金蝶数据推送
export function pushAPI(data) {
  return request({
    url: '/storage/purchase-receipt/push',
    method: 'PUT',
    data
  })
}
